package com.dx.common.table.ppt;

import com.dx.mes.common.bean.entity.UUIDObject;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;

/**
 * AbstractBis_pm_item entity provides the base persistence definition of the
 * Bis_pm_item entity. @author MyEclipse Persistence Tools
 */

@Component
@XStreamAlias("table")
public class Ret_tool_info extends UUIDObject implements java.io.Serializable {

	// Fields

	private Ret_tool_infoId id;
	private String unq_seq_id;
	private String data_value;
	private String data_quality;
	private String data_type;
	private String data_value_type;
	private String evt_usr;
	private Timestamp evt_timestamp;
	private String data_dsc;

    // Constructors

	/** default constructor */
	public Ret_tool_info() {
	}



	/** minimal constructor */
	public Ret_tool_info(Ret_tool_infoId id) {
		this.id = id;
	}

	/** full constructor */
	public Ret_tool_info(Ret_tool_infoId id, String unq_seq_id, String data_value, String data_quality, String data_type, String data_value_type, String evt_usr, Timestamp evt_timestamp, String data_dsc) {
		this.id = id;
		this.unq_seq_id = unq_seq_id;
		this.data_value = data_value;
		this.data_quality = data_quality;
		this.data_type = data_type;
		this.data_value_type = data_value_type;
		this.evt_usr = evt_usr;
		this.evt_timestamp = evt_timestamp;
		this.data_dsc = data_dsc;
	}


	public Ret_tool_infoId getId() {
		return id;
	}

	public void setId(Ret_tool_infoId id) {
		this.id = id;
	}

	@Override
	public String getUnq_seq_id() {
		return unq_seq_id;
	}

	@Override
	public void setUnq_seq_id(String unq_seq_id) {
		this.unq_seq_id = unq_seq_id;
	}

	public String getData_value() {
		return data_value;
	}

	public void setData_value(String data_value) {
		this.data_value = data_value;
	}

	public String getData_quality() {
		return data_quality;
	}

	public void setData_quality(String data_quality) {
		this.data_quality = data_quality;
	}

	public String getData_type() {
		return data_type;
	}

	public void setData_type(String data_type) {
		this.data_type = data_type;
	}

	public String getEvt_usr() {
		return evt_usr;
	}

	public void setEvt_usr(String evt_usr) {
		this.evt_usr = evt_usr;
	}

	public Timestamp getEvt_timestamp() {
		return evt_timestamp;
	}

	public void setEvt_timestamp(Timestamp evt_timestamp) {
		this.evt_timestamp = evt_timestamp;
	}

	public String getData_value_type() {
		return data_value_type;
	}

	public void setData_value_type(String data_value_type) {
		this.data_value_type = data_value_type;
	}

	public String getData_dsc() {
		return data_dsc;
	}

	public void setData_dsc(String data_dsc) {
		this.data_dsc = data_dsc;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		Ret_tool_info that = (Ret_tool_info) o;

		if (id != null ? !id.equals(that.id) : that.id != null) return false;
		if (unq_seq_id != null ? !unq_seq_id.equals(that.unq_seq_id) : that.unq_seq_id != null) return false;
		if (data_value != null ? !data_value.equals(that.data_value) : that.data_value != null) return false;
		if (data_quality != null ? !data_quality.equals(that.data_quality) : that.data_quality != null) return false;
		if (data_type != null ? !data_type.equals(that.data_type) : that.data_type != null) return false;
		if (data_value_type != null ? !data_value_type.equals(that.data_value_type) : that.data_value_type != null)
			return false;
		if (evt_usr != null ? !evt_usr.equals(that.evt_usr) : that.evt_usr != null) return false;
		if (evt_timestamp != null ? !evt_timestamp.equals(that.evt_timestamp) : that.evt_timestamp != null)
			return false;
		return data_dsc != null ? data_dsc.equals(that.data_dsc) : that.data_dsc == null;
	}

	@Override
	public int hashCode() {
		int result = id != null ? id.hashCode() : 0;
		result = 31 * result + (unq_seq_id != null ? unq_seq_id.hashCode() : 0);
		result = 31 * result + (data_value != null ? data_value.hashCode() : 0);
		result = 31 * result + (data_quality != null ? data_quality.hashCode() : 0);
		result = 31 * result + (data_type != null ? data_type.hashCode() : 0);
		result = 31 * result + (data_value_type != null ? data_value_type.hashCode() : 0);
		result = 31 * result + (evt_usr != null ? evt_usr.hashCode() : 0);
		result = 31 * result + (evt_timestamp != null ? evt_timestamp.hashCode() : 0);
		result = 31 * result + (data_dsc != null ? data_dsc.hashCode() : 0);
		return result;
	}
}